home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4461 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.advocacy,comp.os.ms-windows.advocacy
  4. Subject: Re: intuition inefficient ?
  5. Date: 27 Feb 1996 02:24:44 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4gtq1c$mu0@sunsystem5.informatik.tu-muenchen.de>
  9. References: <4gm2qg$8lk@sunsystem5.informatik.tu-muenchen.de> <4grs7r$plr@harbinger.cc.monash.edu.au>
  10. NNTP-Posting-Host: hphalle0.informatik.tu-muenchen.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Bernd Meyer (bmeyer@bruce.cs.monash.edu.au) wrote:
  14. : Juergen "Rally" Fischer (fischerj@Informatik.TU-Muenchen.DE) wrote:
  15.  
  16. : what --- there is two standard ways to catch the vblank signal on a 
  17. : VGA card, and one of them is using an interrupt.
  18.  
  19. Are you sure vblank interrupt is something "standard" on PC ?
  20. I believe each newer VGA got the possibility to send such an
  21. interrupt signal, but what about the _compatible_ way of using it ?
  22.  
  23. : register. This is due to the fact that almost everyone quickly disables
  24. : the vblank interrupt as wasting valuable resources.
  25.  
  26. _polling_ is waste of respources! so double buffering is waste of
  27. recources. efficient rastersplit free animation needs tripple buffering,
  28. which needs either an interrupt or a gfx-hardware that will use a
  29. write to adress-registers not immedeately, but after next vblank.
  30.  
  31. : want an interrupt, you get one. How?
  32. :[...]
  33. : vblank signals. You can then set up one of those high precision timers
  34.  
  35. one of those ? :) The _one and only_ which is able to cause interrupts
  36. in a normal PC.
  37.  
  38. : Now was that really so hard? All of the functionality used in this 
  39.  
  40. No :) I knew, my friend told me. He also told that there are some
  41. problems. Such as interrupts occuring for the time the vblank bit
  42. is set. bzzzt, another frame cpu busy-wait. Won't occur on a DOS demo,
  43. but on a tasking environment it will.
  44.  
  45. : example is very well documented and readily available under DOS and,
  46. : I presume, Windows.
  47. You can add a interrupt handler and are allowed to manipulate
  48. timers under win95 ? I don't believe. Only under DOS.
  49.  
  50. : You probably know where my money is. Have a look at the SVGALIB for
  51. Yes, Bill Gates got it ;)
  52.  
  53. : linux, especially the "wait_vblank" function....
  54.  
  55. I never said you can't _busywait_ for a vblank on PC.
  56. On the Amiga, even _waiting_ for vblank gives cpu time to other
  57. tasks using function WaitTOF(). Only Amiga...
  58.  
  59. : : I can't believe they'll ever implement those nice little things A500 
  60. : : already had (vblank & stuff) into PC hardware _and_ the OSes (win, linux).
  61.  
  62. : And I can't believe how narrow-minded you are, sorry.
  63.  
  64. You didn't read exactly, I didn't tell about vblank-polling.
  65. But as narrow-minded resource-wasting PCer you probably can't
  66. think of anything more :)
  67.  
  68. : Bernie
  69. ------------------------------------------------------------------------
  70.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  71.  
  72.